import request from '@/utils/request'

// 巡更计划-列表
export function patrolPlansList(data) {
  return request({
    url: 'v1/patrol-plans/index',
    method: 'get',
    params: {
      ...data
    }
  })
}

// 巡更计划-新增
export function patrolPlansAdd(data) {
  return request({
    url: 'v1/patrol-plans/create',
    method: 'post',
    data: data
  })
}

// 巡更计划-修改
export function patrolPlansUpdate(data) {
  return request({
    url: 'v1/patrol-plans/update',
    method: 'post',
    params: {
      plan_id: data.plan_id
    },
    data: data
  })
}
